package com.aiti.lulian.entity;

import com.aiti.base.core.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author ZhouS
 * @CreateDate 2022-06-11
 * @Description:字典表
 */
@TableName("sys_dict_data")
@Data
public class SysData extends BaseEntity {
    /*** 主键*/
    @TableId(value = "base_id", type = IdType.ASSIGN_UUID)
    private  String baseId;
    /***字典类型编码（原表中Code_TypeNo字段）*/
    private  String dictTypeNo;
    /***字典编码（原表中Code_No字段）*/
    private  String  dictNo;
    /***父级字典编码（原表中Code_ParentNo字段）*/
    private  String dictParentNo;
    /***父级主键）*/
    private  String baseParentId;
    /*** 名字*/
    private  String baseName;
    /***备注*/
    private  String baseNote;
     /***创建时间*/
    private  String baseCreateTime;
    /***更新时间*/
    private  String baseUpdateTime;
    /*** 字典类型主键*/
    private String typeId;
    /*** 排序*/
    private Integer sort;
    /*** 字典类型主键*/
    private String cssClass;
    /***是否默认*/
    private String isDefault;
    /***状态（0正常 1停用）*/
    private String  status;
    /***创建者*/
    private String creator;
    /** 更新者*/
    private String updateBy;
    /** 租户字段*/
    private String tenantId;

    /** 逻辑删除（0:未删除,1:删除）*/
    private Byte isDelete;

    @TableField(exist = false)
    private Byte hasChildren;

    @TableField(exist = false)
    @ApiModelProperty("子节点")
    private List<SysData> children = new ArrayList<>();
}
